From 20a8ac5542736e7f96c916982ac969b160a59e2d Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Sat, 19 Mar 2016 18:09:22 +0100 Subject: [PATCH] Adwaita: reset entry props on horizontal spinbuttons the spinbutton node is where the styling is applied, the leftover properties on the entry node make a backdrop transition bad. --- gtk/theme/Adwaita/_common.scss | 3 +++ gtk/theme/Adwaita/gtk-contained-dark.css | 2 ++ gtk/theme/Adwaita/gtk-contained.css | 2 ++ 3 files changed, 7 insertions(+) diff --git a/gtk/theme/Adwaita/_common.scss b/gtk/theme/Adwaita/_common.scss index 1da27c183a..6036bc71b1 100644 --- a/gtk/theme/Adwaita/_common.scss +++ b/gtk/theme/Adwaita/_common.scss @@ -987,9 +987,12 @@ spinbutton { entry { min-width: 28px; + // reset all the other props since the spinbutton node is styled here margin: 0; background: none; + background-color: transparent; border: none; + border-radius: 0; box-shadow: none; } diff --git a/gtk/theme/Adwaita/gtk-contained-dark.css b/gtk/theme/Adwaita/gtk-contained-dark.css index ab6fbdefa3..e4495ed5df 100644 --- a/gtk/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/theme/Adwaita/gtk-contained-dark.css @@ -1215,7 +1215,9 @@ spinbutton:not(.vertical) { min-width: 28px; margin: 0; background: none; + background-color: transparent; border: none; + border-radius: 0; box-shadow: none; } spinbutton:not(.vertical) button { min-height: 16px; diff --git a/gtk/theme/Adwaita/gtk-contained.css b/gtk/theme/Adwaita/gtk-contained.css index 33e08fbcf6..ccdac89616 100644 --- a/gtk/theme/Adwaita/gtk-contained.css +++ b/gtk/theme/Adwaita/gtk-contained.css @@ -1221,7 +1221,9 @@ spinbutton:not(.vertical) { min-width: 28px; margin: 0; background: none; + background-color: transparent; border: none; + border-radius: 0; box-shadow: none; } spinbutton:not(.vertical) button { min-height: 16px; -- 2.30.2